<!DOCTYPE HTML>
<html style="background: #f3f3f3;" lang="zh-cmn-Hans">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>签约网</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/lawyer.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/lawyer.js"></script>
</head>
<body>
<div id="secHeader">
  <header class="header">
      <a href="javascript:void(0);" onclick="aaplay('personal')" class="back_btn"><img src="../image/head-fanhui.png" alt=""></a>
      <h2>我的钱包</h2>
      <!--<a href="javascript:void (0);" class="search_btn set_btn">设置</a>-->
  </header>
</div>
<section class="money_section">
    <div class="profit">
        <ul>
            <li></li>
            <li>
                <em class="">本周收益(元)</em>
                <span id="week">0.00</span>
            </li>
            <li><em class="profit_hq">本周未上榜</em></li>
            <li>
                <em class="">我的余额(元)</em>
                <span  id="balance">0.00</span>
            </li>
            <li>
                <em class="">我的收益(元)</em>
                <span id="total">0.00</span>
            </li>
            <li>
                <a href="javascript:;" onclick="aaplay('personal_money_recharge')" class="recharge_btn">充值</a>
                <a href="javascript:;" onclick="aaplay('personal_money_cash')" class="cash_btn">提现</a>
            </li>
        </ul>
    </div>
</section>
<section class="other_operation">
    <ul>
        <li><a href="javascript:;" onclick="aaplay('personal_money_budget')">收支明细</a></li>
        <!-- <li><a href="javascript:;" onclick="aaplay('personal_money_income')">收益明细</a></li> -->
    </ul>
</section>

</body>

<script>

    apiready = function () {
      $api.fixStatusBar( $api.dom('#secHeader') );
      api.setStatusBarStyle({
          style: 'light'
      });

        $('#balance').html(balance+' &nbsp;&nbsp;&nbsp;')
        userdata();

    };
    function userdata(){
        var p={token:token};
        api.ajax({
                url: webSiteUrl+'/app/user/sindex',
                method: 'post',
                data: {
                    values: p
                }
            }, function(ret, err) {
                if(ret.code==200){
                    var tj=ret.data;

                    $('#week').html(tj.week+' &nbsp;&nbsp;&nbsp;')
                    $('#total').html(tj.total+' &nbsp;&nbsp;&nbsp;')





                }
            });
    }


</script>
</html>
